import Vue from 'vue'
import App from './App.vue'
import router from './routers/index.js'
import store from './store/index.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { vueJsonp } from 'vue-jsonp'
import BaiduMap from 'vue-baidu-map'
import myCharts from '@/services/MyCharts.js'
import './assets/global2.less'

// Vue.use(vueJsonp)
//将全局的echarts对象挂载到Vue的原型对象上面
Vue.prototype.$echarts =window.echarts;


Vue.config.productionTip = false
store.dispatch('loginUser/verify');
Vue.use(ElementUI);
Vue.use(BaiduMap, {
  /* 申请的百度密钥，可以在百度地图官网申请 */
  ak: 'aVYkkyGpGaHf37QNisbnoZyLobcZAPte'
});
// Vue.use(vueJsonp);
Vue.use(myCharts)

//dysudufdfhduf
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
